package top.huahaizhi.mpchart.demo;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();

    }

    public void onClick(View view) {

        Intent intent = null;

        switch (view.getId()) {
            case R.id.tv_bar:
                intent = new Intent(this, BarChartActivity.class);
                break;
            case R.id.tv_line:
                intent = new Intent(this, LineChartActivity2.class);
                break;
            case R.id.tv_pie:
                intent = new Intent(this, PieChartActivity.class);
                break;
        }

        startActivity(intent);
    }
}
